package com.kaussoft.lolblog.dao.impl;

import java.util.List;

import com.kaussoft.lolblog.dao.AccountDAO;
import com.kaussoft.lolblog.vo.Account;

public class AccountDAOImpl extends BaseDAOImpl implements AccountDAO {

	public Account findAccountsByName(String accountName, boolean lazy) {
		List accounts = getHibernateTemplate().find("from Account account where account.accountname=?", accountName);
		if (accounts.size() > 0) {
			Account a = (Account) accounts.get(0); 
			a.getWblogs().size();
			return a;
		}
		return null;
	}

}
